//
//  DataBaseTool.h
//  Beautiful--Home
//
//  Created by dlios on 15-9-9.
//  Copyright (c) 2015年 guodanni. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Team9SaveModel.h"
#import <sqlite3.h>
//#import "DesignerModel.h"
//#import "FindModel.h"

typedef NS_ENUM(NSUInteger, SelectInTable) {
    InTable,
    NotInTable,
    SelectError,
};

@interface DataBaseTool : NSObject

{
    sqlite3 *dbPoint;
}

// 查询 model 的类型 因为可能有没有类型的model 如果存了 查一下 比申请快
- (NSString *)searchType:(Team9SaveModel *)model;
+(DataBaseTool *)shareDataBaseTool;

//打开

-(void)openDB;

-(void)creatTable;

-(void)insertDesigner:(Team9SaveModel *)model;

-(void)deleteDesigner:(Team9SaveModel *)model;

-(SelectInTable)isHave:(Team9SaveModel *)model;

-(NSMutableArray *)selectAllDesigner;




@end
